<!DOCTYPE html>
<html>

<head>
    <title>登录</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" href="{$Think.config._index_}css/author_login300.css">
    <!--[if lt IE 9]>
    <script src=”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js”></script>
    <![endif]-->
</head>

<body>
<div id="content">
    <!-- header -->
    <div class="header">
        <div class="boxCenter clearfix">
            <a href="/" class="tdLogo">辰星中文网&nbsp;&sdot;&nbsp;</a>
            <a href="" class="atLogo">用户登录</a>

            <!-- 未登录 -->
            <div class="hdRight">
                <a href="/" class="taBack">返回首页<i></i></a>
            </div>

        </div>
    </div>        <div class="box clearfix">
    <div class="login_bg"> <img src="{$Think.config._index_}picture/login_img.png" /></div>
    <div class="login_box overturn is-visible">
        <ol class="clearfix type_login_box">
            <li class="current"> <a href="javascript:;"> 帐号登录 <i></i></a></li>
            <!--<li class=""> <a href="javascript:;">QQ登录 <i></i></a></li>-->
            <!--<li class="" data-type='wechat'> <a href="javascript:;">微信登录 <i></i></a></li>-->
        </ol>
        <ul class="type_Logincon_box">
            <li class="accounts_box">
                <p class="error_txt">网络异常，请稍后再试</p>
                <div class="accounts_one">
                    <div class="input_box accounts_txt clearfix">
                        <input type="text" name="accounts" class="accounts" id="accounts_txt" placeholder="输入手机号/账号" />

                    </div>
                    <div class="input_box password_txt">
                        <input type="password" name="password" class="password" id="password_txt" placeholder="输入密码" />
                        <div id="msg" style="color:red;"></div>
                    </div>

                    <!--<div class="accounts_con clearfix">-->
                        <!--<a href="javascript:;" class="autologin autologin_on" id="autologin"></a>-->
                        <!--<p>自动登录</p>-->
                        <!--<a href="/v3/author/toRetrieve" class="forget_pass_btn" data-type="resetpass">忘记密码</a>-->
                    <!--</div>-->
                    <a href="javascript:;" class="login_btn accounts_login_btn">登录</a>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="" style="color:#191944;font-size: small;">QQ快捷登录</a>&nbsp;&nbsp;&nbsp;
                        <a href="https://open.weixin.qq.com/connect/qrconnect?appid=wxf1061ff8bec446a0&redirect_uri=http://www.hlrork.com/index/login/wxlogin&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect" style="color:#242f44;font-size: small;">微信扫码登录</a>
                    </p><br>
                    <p class="to_register">还没帐号？<a href="/index/register/index" data>快速注册</a></p>
                </div>
                <div class="accounts_two hidden">
                    <div class="cap_iframe" id="cap_iframe">
                    </div>
                </div>
            </li>
            <li class="qqLogin_box hidden">
                <i></i>
                <p>跳转第三方页面登录</p>
                <a href="javascript:;" class="login_btn qq_login_btn">登录</a>
            </li>
            <li class="wechatLogin_box hidden">
            </li>
        </ul>
    </div>
</div>
    <!-- foot -->
    <div class="footer">
        <!--<p style="padding-top: 14px;">-->
            <!--塔读小说版权所有，未经许可不得转载&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;京ICP证080655号&nbsp;&nbsp;<a href="http://beian.miit.gov.cn/publish/query/indexFirst.action" rel="noreferrer" target="_blank" style="border: none; line-height:100%;vertical-align: baseline;"> 京ICP备09017823号-5</a>《网络文化经营许可证》文网文[2010]230号-->
        <!--</p>-->
        <!--Copyright© 2008-2019 www.tadu.com All Rights Reserved 版权所有 北京易天新动网络技术有限公司-->
    </div>
</div>
<script src="{$Think.config._index_}js/jquery-1.12.4.min.js"></script>
<!--<script src="{$Think.config._index_}js/author_login300.js"></script>-->
<script>
    $(".login_btn").click(function(){
        var accounts = $('input[name="accounts"]').val();
        var password = $('input[name="password"]').val();
        $.post("/index/login/login",{val1:accounts,val2:password},function(data){
            // console.log(data);
            if(data.state === 200){
                window.location.href="/";
            }
            if(data.state === -1){
                $("#msg").html('账号或密码输入错误');
            }
        });
    });
</script>
</body>